package com.itheima.homework;

import java.util.Scanner;
public class Test4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入行数:(范围1-10)");
        int n = sc.nextInt();
        System.out.println("请输入列数:(范围1-10)");
        int m = sc.nextInt();
        nmprint(n, m);
    }

    public static void nmprint(int n, int m) {

        for (int i = 1; i <= m * n; i++) {
            System.out.print("@");
            if (i % m == 0) {
                System.out.println();
            }
        }

    }
}
